package com.syedu.cels.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 顶级父类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public abstract class Base  {
    private Long id;//编号
    private String en;//英文
    private List<String> cn;//中文



    public Base(String en, List<String> cn) {
        this.en = en;
        this.cn = cn;
    }

    @Override
    public String toString() {
        ////☆  [1.abbreviated => 解释: [简短的, 省略的]]
        return "☆  [" + id + "." + en + " => 解释: " + cn + "]";
    }
}